# -*- coding: utf-8 -*-
'''
	APIRouter 路由配置
'''
import uvicorn
from fastapi import FastAPI
from example03 import api,admin,student
from fastapi.staticfiles import StaticFiles
import os

app = FastAPI()


app.include_router(admin.router) 
app.include_router(api.router) 
app.include_router(student.student_router)

app.mount('/static', StaticFiles(directory=os.getcwd()+"/example03"), name="static")


if __name__ == '__main__':

    uvicorn.run(
        app     = 'example03-路由:app', 
        host    = "0.0.0.0", 
        port    = 8080, 
        reload  = True
    )